/**
 * dg
 */
package com.thinkgem.jeesite.zmis.dg.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 顶岗项目登记表Entity
 * @author ll
 * @version 2017-10-11
 */
public class ZmisDg extends DataEntity<ZmisDg> {
	
	private static final long serialVersionUID = 1L;
	private String title;		// 项目名称
	private String nd;		// 年度
	private Date startTime;		// 起始时间
	private Date endTime;		// 结束时间
	private String status;		// 状态(已归档，进行中)
	
	public ZmisDg() {
		super();
	}

	public ZmisDg(String id){
		super(id);
	}

	@Length(min=0, max=64, message="项目名称长度必须介于 0 和 64 之间")
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
	
	@Length(min=0, max=64, message="年度长度必须介于 0 和 64 之间")
	public String getNd() {
		return nd;
	}

	public void setNd(String nd) {
		this.nd = nd;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}
	
	@Length(min=0, max=64, message="状态(已归档，进行中)长度必须介于 0 和 64 之间")
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
}